package com.server.executor;

import java.util.concurrent.TimeUnit;

/**
 * @Description: This is a sample class.
 * @Author: Simon
 */
public interface ThreadPoolConstants {

    int CORE_POOL_SIZE = 10; // 核心线程数

    int MAX_POOL_SIZE = 20; // 最大线程数

    long KEEP_ALIVE_TIME = 60; // 线程空闲时间

//    ArrayBlockingQueue<Runnable> ARRAY_BLOCKING_QUEUE = new ArrayBlockingQueue<>(100); // 工作队列
//
//    NamingThreadFactory DEFAULT_THREAD_FACTORY = new NamingThreadFactory("MyThread"); // 线程工厂
//
//    CallerRunsPolicy KIND_CALLER_POLICY = new CallerRunsPolicy(); // 拒绝策略

}
